

import re
ff = open("html.md","r",encoding="UTF8")
ffs = ff.readlines()
ff.close()

file = open("html.md","w",encoding="UTF8")

for lines in ffs:
    if re.findall("#",lines):
        print(lines)
        file.writelines(lines)
    else:
        print(lines)
        file.writelines("### "+lines)


file.close()
